<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        // 两个数求最大最小值
        var num1 = Math.max(9,16)
        console.log("最大值 = " + num1); 
        var num2 = Math.min(9,16)
        console.log("最小值 = " + num2);

        function max(a,b){
            if(a > b){
                return console.log(a);
            }
            else{
                return console.log(b);
            }
        }
        var max1= max(10,30)
        // 三个数求最大最小值
        function max0(a,b,c){
            if(a>b && a>c){
                return console.log(a);
            }
            if(b>a && b>c){
                return console.log(b);
            }           
            else{
                return console.log(c);
            }
        }
        var max2 = max0(15,10,20)    

        var num_arr =[a,b,c]
        for(var i = 0;i < 3;i++){
        


        }

    </script>
</body>
</html>